package com.gitee.cirnochat.file.service.storage;

import com.gitee.cirnochat.file.service.StorageService;
import com.qcloud.cos.model.PutObjectResult;
import com.qcloud.cos.transfer.Upload;

import java.io.File;
import java.io.OutputStream;

public interface CosService extends StorageService {
    PutObjectResult uploadFileToCos(String uploadPath, File file);

    PutObjectResult putObject(String key, String localFilePath);

    PutObjectResult putObject(String key, File file);

    Upload putPartObject(String key, File file);

    void getObject(String key, OutputStream outputStream);

    void deleteObject(String key);
}
